/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jflextool;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;

@ActionID(category = "Build",
id = "org.jflextool.JFlexGenerar")
@ActionRegistration(displayName = "#CTL_JFlexGenerar")
@ActionReferences({
    @ActionReference(path = "Menu/BuildProject", position = 97),
    @ActionReference(path = "Loaders/text/x-lex/Actions", position = 0)
})
@Messages("CTL_JFlexGenerar=Generar")
public final class JFlexGenerar implements ActionListener {

    private final JFlexDataObject context;

    public JFlexGenerar(JFlexDataObject context) {
        this.context = context;
    }

    @Override
    public void actionPerformed(ActionEvent ev) {
        NotifyDescriptor nd = new NotifyDescriptor.Message("Generando el LEX");
        DialogDisplayer.getDefault().notify(nd);
    }
}
